import logging
import logging.config


def get_logger(name='Shuai'):
    # conf_log = os.path.abspath(os.path.join(os.curdir, "..", "resource", "logger_config.ini"))
    # logging.config.fileConfig(conf_log)
    logging.basicConfig(level=logging.INFO, format="[%(asctime)s] %(levelname)s: %(message)s")
    logger = logging.getLogger(name)
    # console_handler = logging.StreamHandler()
    # logger.addHandler(console_handler)
    # logger.setLevel(logging.INFO)
    return logger


my_logger = get_logger("Shuai")
